package com.autumn.oauth2.zero.provider.endpoint;

import org.springframework.security.oauth2.provider.endpoint.FrameworkEndpoint;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 账户端点
 * 
 * @author 老码农
 *
 *         2018-04-12 20:07:55
 */
@FrameworkEndpoint
public class AccountEndpoint {

	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public String login(Model model, String returnUrl) {
		model.addAttribute("returnUrl", returnUrl);
		return "zero/login";
	}
}
